package com.bwie.controller;
import com.bwie.pojo.Dict;
import com.bwie.service.DictService;
import com.bwie.service.Impl.DictServiceImpl;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* 字典表(tb_dict)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/prod/dict")
public class DictController {
/**
* 服务对象
*/
    @Autowired
    private DictService dictService;

    /**
     * 通过类型查询字典数据
     * @param typeId
     * @return
     */
    @PostMapping("/getDictList/{typeId}")
    public R getDictList(
        @PathVariable("typeId") Integer typeId
    ){
        return dictService.getDictList(typeId);
    }
}
